
LBT=all64
if [ -n "$1" ] ; then
	LBT=$1
fi


TOP_DIR=$(pwd)
BIN_DIR=$TOP_DIR/lib_bin
DST_DIR=$TOP_DIR/lib_bin/mingw_dgn_lib

rm -rf $DST_DIR
mkdir -p $DST_DIR


# <1> basic library

date
sh bl_pthreads_win32.sh $LBT
cp -f -R $BIN_DIR/pthreads/* $DST_DIR
rm -rf $BIN_DIR/pthreads

date
sh bl_sqlite.sh $LBT
cp -f -R $BIN_DIR/sqlite/* $DST_DIR
rm -rf $BIN_DIR/sqlite

date
sh bl_apr.sh $LBT
cp -f -R $BIN_DIR/apr/* $DST_DIR
rm -rf $BIN_DIR/apr

date
sh bl_openssl.sh $LBT
cp -f -R $BIN_DIR/openssl/* $DST_DIR
rm -rf $BIN_DIR/openssl

date
sh bl_zlib.sh $LBT
cp -f -R $BIN_DIR/zlib/* $DST_DIR
rm -rf $BIN_DIR/zlib

date
sh bl_bzip2.sh $LBT
cp -f -R $BIN_DIR/bzip2/* $DST_DIR
rm -rf $BIN_DIR/bzip2

date 
sh bl_libiconv.sh $LBT
cp -f -R $BIN_DIR/libiconv/* $DST_DIR
rm -rf $BIN_DIR/libiconv

date 
sh bl_gettext.sh $LBT
cp -f -R $BIN_DIR/gettext/* $DST_DIR
rm -rf $BIN_DIR/gettext


# <2> multimedia library

date
sh bl_sdl.sh $LBT
cp -f -R $BIN_DIR/SDL/* $DST_DIR
rm -rf $BIN_DIR/SDL

date
sh bl_xvid.sh $LBT
cp -f -R $BIN_DIR/xvid/* $DST_DIR
rm -rf $BIN_DIR/xvid

date
sh bl_x264.sh $LBT
cp -f -R $BIN_DIR/x264/* $DST_DIR
rm -rf $BIN_DIR/x264

date
sh bl_lame.sh $LBT
cp -f -R $BIN_DIR/lame/* $DST_DIR
rm -rf $BIN_DIR/lame

date
sh bl_opencoreamr.sh $LBT
cp -f -R $BIN_DIR/opencoreamr/* $DST_DIR
rm -rf $BIN_DIR/opencoreamr

date
sh bl_xavs.sh $LBT
cp -f -R $BIN_DIR/xavs/* $DST_DIR
rm -rf $BIN_DIR/xavs

date
sh bl_libav.sh $LBT
cp -f -R $BIN_DIR/libav/* $DST_DIR
rm -rf $BIN_DIR/libav

date
sh bl_pugixml.sh $LBT
cp -f -R $BIN_DIR/pugixml/* $DST_DIR
rm -rf $BIN_DIR/pugixml

date
sh bl_giflib.sh $LBT
cp -f -R $BIN_DIR/giflib/* $DST_DIR
rm -rf $BIN_DIR/giflib

# <3> GUI
date
sh bl_fltk13.sh $LBT
cp -f -R $BIN_DIR/fltk13/* $DST_DIR
rm -rf $BIN_DIR/fltk13


# <99> end
date

